/**@file
 * @brief implementation of report.h
 * @see report.h
 * @author <libxiangnan@gmail.com>
 * @date 2011/11/25
 * @version 0.0.1
 *
 * */

#include <ctime>

#include "report.h"

using namespace std;

namespace dat {

//! @brief constructor without parameters
Report::Report() :
		startTime(time(NULL)), endTime(time(NULL)), total(0), pass(0), failed(
				0), error(0), notrun(0), disabled(0) {
	;
}

//! @brief destructor
Report::~Report() {
	;
}

//! @brief startTime Setter
//! @param[in] lcStartTime start time time_t
void Report::setStartTime(std::time_t lcStartTime) {
	this->startTime = lcStartTime;
}

//! @brief startTime Getter
//! @return test start time
std::time_t Report::getStartTime() {
	return this->startTime;
}

//! @brief total Setter
//! @param[in] lcTotal total cases number
void Report::setTotal(std::size_t lcTotal) {
	this->total = lcTotal;
}

//! @brief total Getter
//! @return total cases number
std::size_t Report::getTotal() {
	return this->total;
}

//! @brief pass Setter
//! @param[in] lcPass passed cases number
void Report::setPass(std::size_t lcPass) {
	this->pass = lcPass;
}

//! @brief pass Getter
//! @return passed cases number
std::size_t Report::getPass() {
	return this->pass;
}

//! @brief failed Setter
//! @param[in] lcFailed failed cases number
void Report::setFailed(std::size_t lcFailed) {
	this->failed = lcFailed;
}

//! @brief failed Getter
//! @return failed cases number
std::size_t Report::getFailed() {
	return this->failed;
}

//! @brief error Setter
//! @param[in] lcError error cases number
void Report::setError(std::size_t lcError) {
	this->error = lcError;
}

//! @brief error Getter
//! @return error cases number
std::size_t Report::getError() {
	return this->error;
}

//! @brief notrun Setter
//! @param[in] lcNotrun not run cases number
void Report::setNotrun(std::size_t lcNotrun) {
	this->notrun = lcNotrun;
}

//! @brief notrun Getter
//! @return not run cases number
std::size_t Report::getNotrun() {
	return this->notrun;
}

//! @brief disabled Setter
//! @param[in] lcDisabled no need run cases number
void Report::setDisabled(std::size_t lcDisabled) {
	this->disabled = lcDisabled;
}

//! @brief disabled Getter
//! @return no need run cases number
std::size_t Report::getDisabled() {
	return this->disabled;
}

} /* namespace dat */
